package com.dyh.quickdemo.demos.failReport;

import lombok.Getter;
import lombok.Setter;

/*
@Author=Joey Wheeler
@Date=2020/10/15 9:35
*/
@Setter@Getter
public class FailReport {
    private boolean success;
    private String msg;

    public static FailReport success(){
        FailReport report = new FailReport();
        report.setSuccess(true);
        return report;
    }
    public static FailReport fail(String msg){
        FailReport report = new FailReport();
        report.setSuccess(false);
        report.setMsg(msg);
        return report;
    }

}
